#pragma once
#include"RBTRee.h"

namespace lqy
{
	template<class K>
	class set
	{
	public:
		void insert(const K key)
		{
			_t.Instrt(key);
		}
		void inorder()
		{
			_t.InOrder();
		}
		struct SetKeyOfT
		{
			const K& operator()(const K& k)
			{
				return k;
			}
		};
		typedef RBTree<K, K, SetKeyOfT>::Iterator iterator;
		iterator begin()
		{
			return _t.Begin();
		}
		iterator end()
		{
			return _t.End();
		}
	private:
		RBTree<K, K,SetKeyOfT> _t;

	};
}